import { request } from '@boeyo/portal';

/**
 * 登录
 */
export const toLogin = (data) => {
  return request({
    url: '/login',
    method: 'post',
    data,
  });
};

/**
 *
 * @returns 获取登录页验证码
 */
export const fetchCodeImageApi = () => {
  return request({
    baseURL: '/api',
    url: '/captchaImage',
  });
};
